package models

const TBNStatsApi = "stats_api"

type TblStatsApi struct {
	Id      int64  `orm:"" json:"id" form:"id"`
	Ts      int64  `orm:"int;index;comment:格式：2023040318" json:"ts" form:"ts"`
	Key     string `orm:"varchar(30);default:null;comment:自定义" json:"key" form:"key"`
	App     string `orm:"varchar(32)" json:"app" form:"app"`
	Host    string `orm:"varchar(32)" json:"host" form:"host"`
	Port    int    `orm:"int" json:"port" form:"port"`
	Path    string `orm:"varchar(200)" json:"path" form:"path"`
	Success int    `orm:"integer;comment:接口响应成功次数" json:"success" form:"success"`
	Fail    int    `orm:"integer;comment:接口响应失败次数" json:"fail" form:"fail"`
}

func (m *TblStatsApi) TableName() string {
	return TBNStatsApi
}
